import type{App} from 'vue'
import { createPinia } from 'pinia'
import {storagefyPlus} from './storagefy'
import initTables from '@/mock/initTables'
import {authRouteMode} from "@/common/config"

export default(app:App)=>{
    app.use(
    createPinia()
    .use(storagefyPlus({user:1000*60*60,lang:0,routeList:'localStorage',roleList:'localStorage',userList:'localStorage',requestList:'localStorage'}))
    .use(authRouteMode=='local'?()=>{}:initTables)
    )
}


